import Ajax from "./ajax";

const UserApi = {};

UserApi.list=(params )=>{
    let url = "/user/list"
    return Ajax.json(url, params)
}

UserApi.create=(params )=>{
    let url = "/user/create"
    return Ajax.json(url, params)
}

UserApi.update=(params )=>{
    let url = "/user/update"
    return Ajax.json(url, params)
}

UserApi.getDetail=(params )=>{
    let url = "/user/detail"
    return Ajax.json(url, params)
}

export default UserApi; 